







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Removes the first item in the set. This is also the smallest item in the set.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public T RemoveFirst() |
Visual Basic (Declaration) |
---|
Public Function RemoveFirst As T |
Visual C++ |
---|
public: T RemoveFirst () |
Return Value
The item that was removed, which was the smallest item in the set.
Remarks
RemoveFirst() takes time O(log N), where N is the number of items in the set.
Exceptions
Exception | Condition |
---|---|
System..::InvalidOperationException | The set is empty. |
See Also
OrderedSet<(Of <T>)> Class
Wintellect.PowerCollections Namespace